﻿@model Comment

<div class="comment" id="@Model.Id">
    <div class="row">
        <div class="col-sm-11">
            <h5>@Model.Player.DisplayName <small>skrev for <time datetime="@Model.DateEntry.ToString("s")"></time>:</small></h5>
            <div class="content">@Model.Text</div>
        </div>
        @if (User.Identity.IsAuthenticated && User.Identity.Name.Equals(Model.Player.Initials, StringComparison.CurrentCultureIgnoreCase))
        {
            <div class="col-sm-1">
                <br>
                @Html.ActionLink("ret", "Edit", "Comment", new { id = Model.Id })
                <br>
                <a class="ajaxDelete" data-commentid="@Model.Id">slet</a>
            </div>
        }
    </div>
</div>